macos: mark region as unlikely
authorChristian Hergert <chergert@redhat.com>
Mon, 8 Feb 2021 17:51:58 +0000 (09:51 -0800)
committerChristian Hergert <chergert@redhat.com>
Mon, 8 Feb 2021 19:29:56 +0000 (11:29 -0800)
gdk/macos/gdkmacosglcontext.c

index 2cd68e31d47af0de6126e4943bd76f3f75970908..8dd6bc2e005c736dfb6ac86decc44d9b34cd8f28 100644 (file)
@@ -136,7 +136,7 @@ ensure_gl_view (GdkMacosGLContext *self)
   nsview = _gdk_macos_surface_get_view (surface);
   nswindow = _gdk_macos_surface_get_native (surface);
 
-  if (!GDK_IS_MACOS_GL_VIEW (nsview))
+  if G_UNLIKELY (!GDK_IS_MACOS_GL_VIEW (nsview))
     {
       NSRect frame;